package com.example.demo.msg;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
/*
    接收点对点消息
 */
@Component
public class MsgConsumer {

    @JmsListener(destination = "destination_que")
    public void readMsg(String text) {

        System.out.println("接受到点对点消息："+text);
    }
}
